#@layout() #define main()
<div class="xp-layout">
		<form id="deptForm" action="att/add" method="post" class="layui-form layui-form-pane">
		<input type="hidden" id="state" name="acceptanceteam.dataStatus" value="1">
		<div class="layui-form-item">
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">考场名称</label>
				<div class="layui-input-block">
						<select id="eId" name="acceptanceteam.eId" lay-filter="changebh"> 
						#@option(examinationList,"ID","name",user.DEPARTMENTID??!=null ? (user.DEPARTMENTID??) : departmentID,false)
						</select>
				</div>
			</div>
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">设备信息</label>
				<div class="layui-input-block">
						<select id="dId" name="acceptanceteam.dId" lay-filter="changebh"> 
						#@option(deviceList,"id","syr",user.DEPARTMENTID??!=null ? (user.DEPARTMENTID??) : departmentID,false)
						</select>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">专家1姓名</label>
				<div class="layui-input-block">
					<input type="text" name="acceptanceteam.name1"   maxlength="50" autocomplete="off" placeholder="请输入第一位专家姓名" class="layui-input">
				</div>
			</div>
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">专家1单位</label>
				<div class="layui-input-block">
					<input type="text" name="acceptanceteam.unit1"  autocomplete="off" placeholder="请输入第一位专家单位" class="layui-input" >
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">专家2姓名</label>
				<div class="layui-input-block">
					<input type="text" name="acceptanceteam.name2"   maxlength="50" autocomplete="off" placeholder="请输入第二位专家姓名" class="layui-input">
				</div>
			</div>
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">专家2单位</label>
				<div class="layui-input-block">
					<input type="text" name="acceptanceteam.unit2"   autocomplete="off" placeholder="请输入第二位专家单位" class="layui-input" >
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">专家3姓名</label>
				<div class="layui-input-block">
					<input type="text" name="acceptanceteam.name3"   maxlength="50" autocomplete="off" placeholder="请输入第三位专家姓名" class="layui-input">
				</div>
			</div>
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">专家3单位</label>
				<div class="layui-input-block">
					<input type="text" name="acceptanceteam.unit3"   autocomplete="off" placeholder="请输入第三位专家单位" class="layui-input" >
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">验证码</label>
				<div class="layui-input-block">
				<input type="text" name="acceptanceteam.yzm"  lay-verify="required" autocomplete="off" class="layui-input" >
				</div>
			</div>
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">初验复验</label>
				<div class="layui-input-block">
				<select id="eId" name="acceptanceteam.checkStatus" lay-filter="changebh"> 
						<option value="1">初验</option>
						<option value="2">复验</option>
						</select>
				</div>
			</div>
		</div>
		
		<div class="layui-form-item">
			<div class="layui-col-md6 layui-col-sm6 xp-col-padding5">
				<label class="layui-form-label">邮箱</label>
				<div class="layui-input-block">
				<input type="text" name="acceptanceteam.zjyx"  lay-verify="required" autocomplete="off" class="layui-input" >
				</div>
			</div>
			
		</div>
		
		<div class="layui-form-item">
			<div style="text-align: center;">
				<button class="layui-btn" lay-submit="" lay-filter="go">立即提交</button>
			</div>
		</div>
	</form>
	<script type="text/javascript">
		layui.use([ 'form', 'laydate' ], function() {
			var form = layui.form, layer = layui.layer, laydate = layui.laydate;

			//监听提交
			form.on('submit(go)', function(data) {
				var url = $('#deptForm').attr('action');
				$.post(url, data.field, function(res) {
				 	if (res.result == 1) {
				 	location.reload();
				 	}
						/*layer.open({
							type : 2,
							title : '编辑部门权限',
							area : [ '60%', '60%' ],
							shade : 0,
							maxmin : true,
							id : 'deptRight_iframe',
							content : 'xpDepartment/right_ui?ID=' + res.ID,
							btn : [ '提交', '关闭' ],
							yes : function(index, layero) {
								var iframeWin = window[layero.find('iframe')[0]['name']];
								iframeWin.saveRight();
							},
							btn2 : function(index, layero) {
							},
							zIndex : layer.zIndex,
							success : function(layero) {
								layer.setTop(layero);
							}
						});
					} else {
						layer.msg(res.msg, {
							icon : 5
						});
					} */
				});
				return false;
			});
		});
	</script>
</div>
#end

